package person.bing.fbcloud.brushQuestions.designpattern.prototype;

/**
 * @author: mengfanbing
 * @date: 2020/6/4 11:39
 */
public class ClassMain {
    public static void main(String[] args) throws CloneNotSupportedException {
        ClassPrototype classPrototype = ClassPrototype.builder()
                .id(1)
                .desc("我啥也不知道")
                .build();
        System.out.println(classPrototype);

        ClassPrototype classPrototypeClone = (ClassPrototype)classPrototype.clone();
        System.out.println(classPrototypeClone);

        System.out.println(classPrototype == classPrototypeClone);
    }
}
